﻿using WMLogistics.Model;
using WMLogistics_Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions;

namespace WMLogistics.Service
{
    public class ContractCancelService
    {
        private ContractCancelDao dao = new ContractCancelDao();

        public int Add(wuliu_contract_cancel cancel)
        {
            return dao.Add(cancel);
        }

        public PageData<wuliu_contract_cancel> GetPageList(IPredicate predicate,IPredicate wlPredicate,IList<ISort> sorts,int pageIndex,int pageSize)
        {
            return dao.GetPageList(predicate, wlPredicate, sorts, pageIndex, pageSize);
        }

        public wuliu_contract_cancel Get(int id)
        {
            return dao.Get(id);
        }
    }
}
